home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 1.7 KB | 57 lines | [TEXT/MPCC] |
- //
- // File: TestFunctions.h
- //
- // Contains: Speech recognition support for QuickTime VR movies.
- //
- // Written by: Tim Monroe
- //
- // Copyright: © 1996 by Apple Computer, Inc., all rights reserved.
- //
- // Change History (most recent first):
- //
- // <1> 12/05/96 rtm ported earlier speech recognition support functions to VRShell
- //
- //
-
- // header files
-
- #include "SpeechRecognition.h"
- #include <AppleEvents.h>
- #include <Timer.h>
- #include "QTVR.h"
- #include "DTSQTUtilities.h"
-
-
- // function prototypes
- // speech recognition support public functions prototypes
-
- void SpeechInit (void);
- void SpeechStop (void);
- pascal OSErr HandleSpeechBegunAppleEvent (AppleEvent *theAEevt, AppleEvent* reply, long refcon);
- pascal OSErr HandleSpeechDoneAppleEvent (AppleEvent *theAEevt, AppleEvent* reply, long refcon);
- OSErr ReadLanguageModelsFromResource (void);
- Boolean GoDirByDegrees (QTVRInstance theInstance, long theDir, long theAmt);
- Boolean GoDirByRadians (QTVRInstance theInstance, long theDir, long theAmt);
- void ZoomInOrOut(QTVRInstance theInstance, long theDir);
- void DoEventLoopSpinCheck (void);
- Boolean IsSpinning (void);
- void StartSpinning (QTVRInstance theInstance, long theDir);
- void StopSpinning (void);
- pascal OSErr SpeakNameOfNode (QTVRInstance theInstance, long nodeID, SInt32 refCon);
- void InstallSpeechFeedbackRoutine (QTVRInstance theInstance);
-
- // miscellaneous constants
- #define kLMResourceType 'LMDL'
- #define kLMResourceID 129
-
- #define kSpinMillisecsDelay 25 //empirically determined
-
- // an expanded Time Manager record
- // we use this to manage the spinning around
- typedef struct MyTMTask {
- TMTask theTMTask;
- long theSpinDir;
- long theSpinAmt;
- long theSpinDelay;
- QTVRInstance theInstance;
- } MyTMTask, *MyTMTaskPtr;